package com.liy.cloud.base.service.impl;

import com.das.framework.common.vo.PageVO;
import com.liy.cloud.base.dao.BaseEquTypeDao;
import com.liy.cloud.base.entity.BaseEquTypeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liy.cloud.base.service.BaseEquTypeService;
import com.das.framework.common.dao.IBaseDao;
import com.das.framework.common.service.impl.BaseServiceImpl;

import java.util.List;

@Service
public class BaseEquTypeServiceImpl extends BaseServiceImpl<BaseEquTypeEntity, String> implements BaseEquTypeService {

	@Autowired
	private BaseEquTypeDao baseEquTypeDao;
	
	@Override
	public IBaseDao<BaseEquTypeEntity, String> getDao() {
		return baseEquTypeDao;
	}


	@Override
	public List<BaseEquTypeEntity> findAll() {
		return baseEquTypeDao.findAll();
	}

	@Override
	public List<BaseEquTypeEntity> selectByTypeCode(String typeCode, PageVO<BaseEquTypeEntity> page) throws Exception {
		return baseEquTypeDao.selectByTypeCode(typeCode, page);
	}

	@Override
	public int addBaseEquType(BaseEquTypeEntity baseEquTypeEntity) throws Exception {
		return this.add(baseEquTypeEntity);
	}


}
